package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论管理对象 comment
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论id */
    private Long commentId;

    /** 博客id */
    @Excel(name = "博客id")
    private Long blogId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 评论日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date commentDate;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String commentContent;

    /** 用户身份 */
    @Excel(name = "用户身份")
    private String usrPost;

    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setBlogId(Long blogId) 
    {
        this.blogId = blogId;
    }

    public Long getBlogId() 
    {
        return blogId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommentDate(Date commentDate) 
    {
        this.commentDate = commentDate;
    }

    public Date getCommentDate() 
    {
        return commentDate;
    }
    public void setCommentContent(String commentContent) 
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent() 
    {
        return commentContent;
    }
    public void setUsrPost(String usrPost) 
    {
        this.usrPost = usrPost;
    }

    public String getUsrPost() 
    {
        return usrPost;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("commentId", getCommentId())
            .append("blogId", getBlogId())
            .append("userId", getUserId())
            .append("commentDate", getCommentDate())
            .append("commentContent", getCommentContent())
            .append("usrPost", getUsrPost())
            .toString();
    }
}
